package main

import (
	"fmt"
)

func main()  {
	result := getNums(10)
	fmt.Println("allNums = ",result)
}

func getNums (days int) int {
	if days == 1 {
		return 1
	}else {
		return (getNums(days-1)+1) * 2
	}
}
